import request from '@/utils/request'

// 查询计量单管理列表
export function listBsSettle(query) {
  return request({
    url: '/cm/bsSettle/list',
    method: 'get',
    params: query
  })
}

// 查询计量单管理详细
export function getBsSettle(settleId) {
  return request({
    url: '/cm/bsSettle/' + settleId,
    method: 'get'
  })
}

// 新增计量单管理
export function addBsSettle(data) {
  return request({
    url: '/cm/bsSettle',
    method: 'post',
    data: data
  })
}

// 修改计量单管理
export function updateBsSettle(data) {
  return request({
    url: '/cm/bsSettle',
    method: 'put',
    data: data
  })
}

// 删除计量单管理
export function delBsSettle(settleId) {
  return request({
    url: '/cm/bsSettle/' + settleId,
    method: 'delete'
  })
}
